<?php
declare (strict_types=1);

namespace app\common\model;

class Carousel extends Base
{
    protected $name = 'carousel';

    public function getTypeAttr($value)
    {
        return match ($value) {
            1 => '首页轮播',
            2 => '商城轮播',
            default => '首页轮播'
        };
    }

}
